package home_8_27;

import com.neu.Dao.BaseDao;

public class InsertTest extends BaseDao {
    public int  insert(){
        int row = 0;
        String sql = "insert into student (sno,sname,ssex) values (?,?,?)";
        int r = super.executeUpdate(sql,"101","者行孙","uitou");

        if (r>0){
            System.out.println("成功");
        }else {
            System.out.println("失败");
        }

        return row;
    }

    public static void main(String[] args) {

        InsertTest stu = new InsertTest();
        System.out.println(stu.insert());


    }
}
